package com.hidt.shop.service.impl;


import com.hidt.shop.domain.Goods;
import com.hidt.shop.mapper.SelectGoodsMapper;
import com.hidt.shop.service.SelectGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SelectGoodsServiceImpl implements SelectGoodsService {

    @Autowired
private SelectGoodsMapper selectGoodsMapper;

    /**
     *@methodName selectGoodsByname
     *@方法功能描述
     *通过商品名进行模糊查询
     *@params
     *@return java.util.List<com.hidt.shop.domain.Goods>
     *@exception
     *@author $風~$
     *@Date 2021/1/20
     */
    public List<Goods> selectGoodsByNameAndPrice (Map<String,String> map,int start ,int pageSize){
        List<Goods> goodsList = selectGoodsMapper.selectGoodsByNameAndPrice(map,start,pageSize);
        return goodsList;
    }
}
